﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<AukcjeInternetowe.Models.ItemCategoryModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Delete
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>ItemCategoryModel</legend>

    <div class="display-label">Title</div>
    <div class="display-field">
        <p style="left:30px;font-weight:bold"><%: Html.DisplayFor(model => model.Title) %></p>
    </div>

    <div class="display-label">Description</div>
    <div class="display-field">
        <p style="left:30px;font-weight:bold"><%: Html.DisplayFor(model => model.Description) %></p>
    </div>

    <div class="display-label">ActualPrice</div>
    <div class="display-field">
        <p style="left:30px;font-weight:bold"><%: Html.DisplayFor(model => model.ActualPrice) %></p>
    </div>

    <div class="display-label">EndDate</div>
    <div class="display-field">
        <p style="left:30px;font-weight:bold"><%: Html.DisplayFor(model => model.EndDate) %></p>
    </div>

    <div class="display-label">ImageURL</div>
    <div class="display-field">
        <img src="<%: Html.DisplayFor(model => model.ImageURL) %>" alt="Zdjęcie główne" width="120" height="120" />
    </div>

    <div class="display-label">CategoryId</div>
    <div class="display-field">
        <p style="left:30px;font-weight:bold"><%: Html.DisplayFor(model => model.CategoryId) %></p>
    </div>
</fieldset>
<div style="float:right">
    <% using (Html.BeginForm()) { %>
        <p>
            <input type="submit" value="Delete" /> |
            <%: Html.ActionLink("Wróć do listy aukcji", "Index") %>
        </p>
    <% } %>
</div>

</asp:Content>
